﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ViewModels.RecruitInfoVM
{
    public class RecruitInfoMainVM
    {
        public RecruitInfoMainVM()
        {
            #region Chart용 데이터 초기화

            StartDate = DateTime.Now.AddDays(-10).ToString("yyyy-MM-dd");
            EndDate = DateTime.Now.ToString("yyyy-MM-dd");

            RecruitInfoSeriesListForChart = new List<RecruitInfoSeriesVM>();
            RecruitInfoSeriesListForChart.Add(new RecruitInfoSeriesVM
            {
                AgentType = "S",
                JobType = "DEV-WEB-NET",
                RecruitCounts = new List<int>()
            });
            RecruitInfoSeriesListForChart.Add(new RecruitInfoSeriesVM
            {
                AgentType = "S",
                JobType = "DEV-WEB-JAVA",
                RecruitCounts = new List<int>()
            });

            XAxisList = new List<string>();

            #endregion

            #region 그리드용 데이터 초기화

            RecruitInfoListForGrid = new List<RecruitInfoVM>();

            #endregion
        }

        public string StartDate { get; set; }

        public string EndDate { get; set; }

        public List<RecruitInfoSeriesVM> RecruitInfoSeriesListForChart { get; set; }

        public List<RecruitInfoVM> RecruitInfoListForGrid { get; set; }

        public List<string> XAxisList { get; set; }
    }

    public class RecruitInfoSeriesVM
    {
        public string AgentType { get; set; }

        public string JobType { get; set; }

        public List<int> RecruitCounts { get; set; }
    }

    public class RecruitInfoVM
    {
        public string BaseDate { get; set; }

        public int DevWebNet { get; set; }

        public int DevWebJava { get; set; }

        public int DevWebTotal { get; set; }
    }
}
